package com.example.administrator.yuejian_15.activity;

import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.example.administrator.yuejian_15.R;


public class JlbKcInfoActivity extends BaseActivity implements View.OnClickListener {
    ImageView kcinfo_fh;
    TextView kcinfo1,kcinfo2,kcinfo3,kcinfo4,kcinfo5,kcinfo6,kcinfo7;
    String jlbcourse,jlbprice,jlblevel,jlbcintro,jlbcknow,jlbcctime,jlbjlname;
    Button kcinfo_bm;

    @Override
    void initView() {
        setLayout_file(R.layout.activity_jlb_kc_info);
        kcinfo_fh=(ImageView)findViewById(R.id.kcinfo_fh);
        kcinfo1=(TextView)findViewById(R.id.kcinfo1);
        kcinfo2=(TextView)findViewById(R.id.kcinfo2);
        kcinfo3=(TextView)findViewById(R.id.kcinfo3);
        kcinfo4=(TextView)findViewById(R.id.kcinfo4);
        kcinfo5=(TextView)findViewById(R.id.kcinfo5);
        kcinfo6=(TextView)findViewById(R.id.kcinfo6);
        kcinfo7=(TextView)findViewById(R.id.kcinfo7);
        kcinfo_bm=(Button)findViewById(R.id.kcinfo_bm);


        jlbcourse=getIntent().getStringExtra("jlbcourse");
        jlbprice=getIntent().getStringExtra("jlbprice");
        jlblevel=getIntent().getStringExtra("jlblevel");
        jlbcintro=getIntent().getStringExtra("jlbcintro");
        jlbcknow=getIntent().getStringExtra("jlbcknow");
        jlbcctime=getIntent().getStringExtra("jlbcctime");
        jlbjlname=getIntent().getStringExtra("jlbjlname");

        kcinfo1.setText("课程:"+jlbcourse);
        kcinfo2.setText("价格:"+jlbprice);
        kcinfo3.setText("等级:"+jlblevel);
        kcinfo4.setText("介绍:"+jlbcintro);
        kcinfo5.setText("须知:"+jlbcknow);
        kcinfo6.setText("时间:"+jlbcctime);
        kcinfo7.setText("教练:"+jlbjlname);



    }

    @Override
    void initEvent() {
        kcinfo_fh.setOnClickListener(this);
        kcinfo_bm.setOnClickListener(this);

    }

    @Override
    void initDate() {

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.kcinfo_fh:
                finish();
                break;
            case R.id.kcinfo_bm:
                Toast.makeText(JlbKcInfoActivity.this,"2.0开发中",Toast.LENGTH_SHORT).show();
                break;
        }
    }
}
